<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center jinpaidetail_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub jinpaidetail_fd0_0'>
					<view class='flex flex-wrap align-center jinpaidetail_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  jinpaidetail_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-stretch justify-center'>
						<text class='jinpaidetail_fd0_0_c1_c0'>竞拍详情</text>
					</view>
					<view class='flex flex-wrap align-center justify-end jinpaidetail_fd0_0_c0'>
					</view>
				</view>
			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex benben-flex-layout flex-wrap align-center">
				<view class='flex flex-wrap align-center jinpaidetail_fd1_0' style="padding-bottom: 120rpx;">
					<view class='flex flex-wrap align-center jinpaidetail_fd1_0_c0'>
						<view class='flex flex-wrap align-start justify-between jinpaidetail_fd1_0_c0_c0'>
							<view class='flex flex-wrap align-center jinpaidetail_fd1_0_c0_c0_c0'>
								<text>竞拍日期：</text>
								<text>{{detail.riqi}}</text>
							</view>
							<view class='flex flex-wrap align-center'>
								<text class='jinpaidetail_fd1_0_c0_c0_c1_c0' v-if="status==1">竞拍中</text>
								<text class='jinpaidetail_fd1_0_c0_c0_c1_c1' v-if="status==2">被超越</text>
								<text class='jinpaidetail_fd1_0_c0_c0_c1_c2' v-if="status==3">正展示</text>
								<text class='jinpaidetail_fd1_0_c0_c0_c1_c3' v-if="status==4">已过期</text>
								<text class='jinpaidetail_fd1_0_c0_c0_c1_c4' v-if="status==5">竞拍失败</text>
							</view>
						</view>
						<view class='flex flex-wrap align-start justify-between jinpaidetail_fd1_0_c0_c0'>
							<view class='flex flex-wrap align-center jinpaidetail_fd1_0_c0_c0_c0'>
								<text>竞拍区域：</text>
								<text>{{detail.province}}{{detail.city}}</text>
							</view>
						</view>
						<view class='flex flex-wrap align-start justify-between jinpaidetail_fd1_0_c0_c0'>
							<view class='flex flex-wrap align-center jinpaidetail_fd1_0_c0_c0_c0'>
								<text>参与法豆：</text>
								<text>{{detail.fadou}}</text>
								<view class='flex flex-wrap align-center jinpaidetail_fd1_0_c0_c2_c0_c2'>
									<text class='jinpaidetail_fd1_0_c0_c2_c0_c2_c0' v-if="status==1">冻结中</text>
									<text class='jinpaidetail_fd1_0_c0_c2_c0_c2_c0' v-if="status==3||status==4">已扣除</text>
									<text class='jinpaidetail_fd1_0_c0_c2_c0_c2_c0' v-if="status==2||status==5">已解冻</text>
								</view>
							</view>
						</view>
					</view>
					<view class='flex flex-wrap align-center jinpaidetail_fd1_0_c1'>
						<view class='flex flex-wrap align-center jinpaidetail_fd1_0_c1_c0'>
							<view class='flex flex-wrap align-center jinpaidetail_fd1_0_c1_c0_c0'>
								<text class='jinpaidetail_fd1_0_c1_c0_c0_c0'>参与信息</text>
							</view>
							<view class='flex flex-wrap align-center justify-center jinpaidetail_fd1_0_c1_c0_c1'>
								<image class='jinpaidetail_fd1_0_c1_c0_c1_c0' mode="aspectFill"
									:src='detail.head'></image>
							</view>
							<view class='flex flex-wrap align-center justify-center jinpaidetail_fd1_0_c1_c0_c2'>
								<text class='jinpaidetail_fd1_0_c1_c0_c2_c0'>{{detail.realname}}</text>
							</view>
							<view class='flex flex-wrap align-center justify-center jinpaidetail_fd1_0_c1_c0_c3'>
								<text class='self-end jinpaidetail_fd1_0_c1_c0_c3_c0'>{{detail.zhiwu}}</text>
							</view>
							<view class='flex flex-wrap align-center jinpaidetail_fd1_0_c1_c0_c4'>
								<text class='jinpaidetail_fd1_0_c0_c0_c0'>联系电话：</text>
								<text class='jinpaidetail_fd1_0_c1_c0_c4_c1'>{{detail.mobile}}</text>
							</view>
							<view class='flex flex-wrap align-center jinpaidetail_fd1_0_c1_c0_c4'>
								<text class='jinpaidetail_fd1_0_c0_c0_c0'>单位：</text>
								<text>{{detail.danwei}}</text>
							</view>
							<view class='flex flex-wrap jinpaidetail_fd1_0_c1_c0_c4'>
								<text class='jinpaidetail_fd1_0_c0_c0_c0'>简介：</text>
								<text style="width: 80%;">{{detail.jianjie}}</text>
							</view>
						</view>
					</view>
				</view>
				<view class='flex flex-wrap align-center justify-center jinpaidetail_fd1_1' v-if="status ==1" @click="editjinpai">
					<text class='jinpaidetail_fd1_1_c0'>内容修改</text>
				</view>
				<view class='flex flex-wrap align-center justify-center jinpaidetail_fd1_1' @click="restartclick" v-if="status==4||status==5">
					<text class='jinpaidetail_fd1_1_c1'>重新竞拍</text>
				</view>
				<view class='flex flex-wrap align-center justify-center jinpaidetail_fd1_1' @click="restartclick" v-if="status==2">
					<text class='jinpaidetail_fd1_1_c1'>重新出价</text>
				</view>
			</view>

			<!---flex布局flex布局结束-->
			<benben-popup v-model="popupShow1709185666195" :mask="true" :mask-close-able="true" mode='center'
				:z-index='999'>
				<!---flex布局flex布局开始-->
				<view class="flex flex-direction flex-wrap align-start benben-flex-layout jinpaidetail_flex_2">
					<view class='flex flex-wrap align-stretch justify-center jinpaidetail_fd2_0'>
						<view class='flex flex-wrap align-center justify-center jinpaidetail_fd2_0_c0'>
							<image class='jinpaidetail_fd2_0_c0_c0' mode="aspectFit" src='https://paiaifalv.oss-cn-beijing.aliyuncs.com/images/65.png'></image>
						</view>
						<view class='flex flex-wrap align-center justify-center jinpaidetail_fd2_0_c1'>
							<text class='jinpaidetail_fd2_0_c1_c0'>当日竞拍己结束，请明天再来。</text>
						</view>
						<view class='flex flex-direction flex-wrap align-center justify-center jinpaidetail_fd2_0_c2' @click="popupShow1709185666195=false">
							<text class='jinpaidetail_fd2_0_c2_c0'>知道了</text>
						</view>
					</view>
					<view class='jinpaidetail_fd2_1'></view>
				</view>

				<!---flex布局flex布局结束-->

			</benben-popup>


		</view>
	</view>
</template>
<script>
	export default {
		components: {},
		data() {
			return {
				aid:"",//aid
				status:"",//状态
				detail:"",//详情
				"popupShow1709185666195": false
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			this.aid = options.aid;
			this.status = options.status;
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			this.get_auction_detail();
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//竞拍详情
			get_auction_detail(){
				this.$api.post(global.apiUrls.get_auction_detail, {
					aid:this.aid,
				}).then(res => {
					if (res.data.code == 1) {
						this.detail = res.data.data;
					}else{
						this.$message.info(res.data.msg);
					}
				})
			},
			
			//内容修改
			editjinpai(){
				uni.navigateTo({
					url:"/pages/shouye/canyujinpai/editjinpai?aid="+this.aid,
				})
			},
			
			//重新竞拍
			restartclick(){
				uni.setStorageSync("povicename",this.detail.province);
				uni.setStorageSync("cityname",this.detail.city);
				uni.navigateTo({
					url:"/pages/shouye/canyujinpai/canyujinpai"
				})
				return
				var timestamp = new Date().valueOf()/1000;
				if(Number(timestamp)>Number(this.detail.end_time)){
					this.popupShow1709185666195 = true;
				}else{
					uni.setStorageSync("povicename",this.detail.province);
					uni.setStorageSync("cityname",this.detail.city);
					uni.navigateTo({
						url:"/pages/shouye/canyujinpai/canyujinpai"
					})
				}
			},
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #EFEFEF;
		;
		background-size: 100% auto;
	}

	.jinpaidetail_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.jinpaidetail_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 700;
		color: #333333;
		line-height: 50rpx;
	}

	.jinpaidetail_fd0_0_c0_c0 {
		font-size: 36rpx;
		color: #333;
	}

	.jinpaidetail_fd0_0_c0 {
		width: 120rpx;
	}

	.jinpaidetail_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.jinpaidetail_fd1_1_c1 {
		color: #FFFFFF;
		font-size: 28rpx;
		font-weight: 500;
	}

	.jinpaidetail_fd1_1_c0 {
		color: #FFFFFF;
		font-size: 28rpx;
		font-weight: 500;
		line-height: 0rpx;
		text-align: center;
	}

	.jinpaidetail_fd1_1 {
		background: #26BF01;
		width: 100%;
		height: 98rpx;
		text-align: center;
		position: fixed;
		left: 0rpx;
		bottom: calc(0rpx + var(--window-bottom));
	}

	.jinpaidetail_fd1_0_c1_c0_c4_c1 {
		margin: 12rpx 0rpx 12rpx 0rpx;
	}

	.jinpaidetail_fd1_0_c1_c0_c4 {
		width: 100%;
		color: #000000;
		font-size: 28rpx;
		font-weight: 400;
	}

	.jinpaidetail_fd1_0_c1_c0_c3_c0 {
		color: #9B9B9B;
		font-size: 28rpx;
		font-weight: 400;
	}

	.jinpaidetail_fd1_0_c1_c0_c3 {
		width: 100%;
		text-align: center;
	}

	.jinpaidetail_fd1_0_c1_c0_c2_c0 {
		margin: 15rpx 0rpx 8rpx 0rpx;
	}

	.jinpaidetail_fd1_0_c1_c0_c2 {
		width: 100%;
		color: #333333;
		font-size: 48rpx;
		font-weight: 600;
		text-align: center;
	}

	.jinpaidetail_fd1_0_c1_c0_c1_c0 {
		width: 380rpx;
		height: 520rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.jinpaidetail_fd1_0_c1_c0_c1 {
		width: 100%;
		margin: 030rpx 0rpx 0rpx 0rpx;
	}

	.jinpaidetail_fd1_0_c1_c0_c0_c0 {
		color: #000000;
		font-size: 32rpx;
		font-weight: 500;
	}

	.jinpaidetail_fd1_0_c1_c0_c0 {
		width: 100%;
		margin: 30rpx 0rpx 0rpx 0rpx;
	}

	.jinpaidetail_fd1_0_c1_c0 {
		width: 702rpx;
		margin: 0rpx 0rpx 0rpx 24rpx;
		padding: 0rpx 0rpx 32rpx 0rpx;
	}

	.jinpaidetail_fd1_0_c1 {
		width: 100%;
	}

	.jinpaidetail_fd1_0_c0_c2_c0_c2_c0 {
		color: #FFFFFF;
		font-size: 24rpx;
		font-weight: 400;
	}

	.jinpaidetail_fd1_0_c0_c2_c0_c2 {
		background: #FD0100;
		height: 36rpx;
		border-radius: 2rpx 2rpx 2rpx 2rpx;
		padding: 2rpx 3rpx 2rpx 3rpx;
		margin: 0rpx 0rpx 0rpx 12rpx;
	}

	.jinpaidetail_fd1_0_c0_c0_c1_c4 {
		color: #FD0100;
		font-size: 28rpx;
		font-weight: 400;
	}

	.jinpaidetail_fd1_0_c0_c0_c1_c3 {
		color: #999999;
		font-size: 28rpx;
		font-weight: 400;
	}

	.jinpaidetail_fd1_0_c0_c0_c1_c2 {
		color: #26BF01;
		font-size: 28rpx;
		font-weight: 400;
	}

	.jinpaidetail_fd1_0_c0_c0_c1_c1 {
		color: #E9B404;
		font-size: 28rpx;
		font-weight: 400;
	}

	.jinpaidetail_fd1_0_c0_c0_c1_c0 {
		color: #68D42B;
		font-size: 28rpx;
		font-weight: 400;
	}

	.jinpaidetail_fd1_0_c0_c0_c0 {
		color: #000000;
		font-size: 28rpx;
		font-weight: 400;
	}

	.jinpaidetail_fd1_0_c0_c0 {
		width: 702rpx;
		margin: 10rpx 0rpx 10rpx 24rpx;
	}

	.jinpaidetail_fd1_0_c0 {
		border-bottom: 1px solid rgba(242, 242, 242, 1);
		width: 100%;
	}

	.jinpaidetail_fd1_0 {
		background: rgba(255, 255, 255, 1);
		width: 100%;
		background-size: 100% auto;
	}

	.jinpaidetail_flex_2 {
		width: 510rpx;
	}

	.jinpaidetail_fd2_1 {
		width: 60rpx;
		height: 60rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		margin: 48rpx 0rpx 0rpx 241rpx;
	}

	.jinpaidetail_fd2_0_c2_c0 {
		color: #FFFFFF;
		font-size: 28rpx;
		font-weight: 500;
	}

	.jinpaidetail_fd2_0_c2 {
		background: #26BF01;
		border-radius: 8rpx;
		width: 446rpx;
		height: 72rpx;
		margin: 0rpx 0rpx 32rpx 0rpx;
	}

	.jinpaidetail_fd2_0_c1_c0 {
		font-size: 28rpx;
		font-weight: 400;
		color: #333333;
	}

	.jinpaidetail_fd2_0_c1 {
		padding: 0rpx 0rpx 45rpx 0rpx;
	}

	.jinpaidetail_fd2_0_c0_c0 {
		width: 112rpx;
		height: 112rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.jinpaidetail_fd2_0_c0 {
		margin: 32rpx 176rpx 32rpx 176rpx;
		width: 112rpx;
		height: 112rpx;
	}

	.jinpaidetail_fd2_0 {
		background: #fff;
		background-size: 100% auto !important;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		padding: 40rpx 0rpx 0rpx 0rpx;
		width: 510rpx;
	}
</style>